import numpy as np

from example import example_mod
# 调用子程序 say_hello
print('example:')
example_mod.say_hello('World')
print('\n')

import foo
a = np.array([[1,2,3,4], [5,6,7,8]], order='F')
print('foo:')
print(foo.kif(a))
print('\n')

from foo import hello
print('foo:')
hello(9)
print('\n')

from moddata import data
# 初始化模块变量
i = 10
x = [1, 2, 3, 4]
a = [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]
# 调用子程序 foo
print('moddata:')
data.fkk()
print('\n')

from module1 import module1 
from module2 import module2
from module3 import module3

# 调用module1中的add函数
result_add = module1.add(1, 2)
print('module1:',result_add)
print('\n')

# 调用module2中的multiply函数
result_multiply = module2.multiply(3, 4)
print('module2:',result_multiply)
print('\n')

# 调用module3中的power函数
result_power = module3.power(5, 2)
print('module3:',result_power)
print('\n')

